package com.edu.edumanager.service;

import com.edu.edumanager.vo.EduResult;
import com.edu.edumanager.vo.EduSubjectList;
import com.edu.edumanager.vo.ElementTreeVo;
import com.edu.edumanager.vo.ExcelVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @program: edu-manager
 * @description:
 * @author: Jaime
 * @create: 2021-08-13 15:34
 **/
public interface ClassService {
    String findSubjectTitleById(Integer subjectId);


    EduResult uploadExcel(MultipartFile file);

    List<ExcelVo> selectAllSubject();


    List<ElementTreeVo> findSubjectByParentId(Integer parentId);

    int deleteSubject(Integer id);

    String updateSubjectById(Integer id, String value);
    /**
     * 查询所有一级课程分类以及每一个以及下面对应的二级分类
     * @return
     */
    List<EduSubjectList> getSubjectList();

}
